import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

import '../css/main.dart';

abstract class YaxiObject2d extends StatelessWidget {
  final CSSNodeData data;

  YaxiObject2d(this.data) : super(key: ValueKey(data.uuid));

  @override
  Widget build(BuildContext context) {
    return CSSNode(
      data,
      buildChild(context, data),
    );
  }

  Widget buildChild(BuildContext context, CSSNodeData data);
}
